/* Tree */
 
#include <stdlib.h>
#include <stdio.h>
 
#include "tree.h"
 
struct s_tree
{
  int                   key;
  tree                  left, right;
};
 
tree tree_uniform_build(int *key, int depth)
{
  tree                  t = NULL;
  if (depth >= 0)
    {
      t = malloc(sizeof (struct s_tree));
      t->left = tree_uniform_build(key, depth - 1);
      *key += 1;
      t->key = *key;
      t->right = tree_uniform_build(key, depth - 1);
    }
  return t;
}

int tree_size (tree t)
{
  if (t = NULL)
    {
      return 0;
    }
  else 
    {
      return 1 + tree_size(t->right) + tree_size(t->left);
    };
}

int tree_height (tree t)
{
  return 0;
}

void tree_free (tree t)
{
  if (t = NULL)
    {
      
    }
  else 
    {
      tree_free(t->left);
      tree_free(t->right);
      free(t)
    }
}

int main()
{
  return 0;
}
